import { fetchItem } from "@alife/dior-fetch-data";
import { getBaseUrl, makeRequest } from "../../../helps/utils";
// 获取内容分类标签接口
export const getContentCategoryConfig = async (params = {}) => {
  return makeRequest(
    `${getBaseUrl()}/contentInfo/categoryConfig`,
    "GET",
    params
  );
};
// 获取内容列表接口
export const getContentDetail = async (
  pageParams = {},

  params = {},
  type
) => {
  const { pageNo = 1, pageSize = 10 } = pageParams;
  return makeRequest(
    `${getBaseUrl()}/contentInfo/list/${type}/${pageNo}/${pageSize}`,
    "GET",
    params
  );
};
